<?php
namespace app\validate;

use think\Validate;

class CheckLogin extends Validate
{
    protected $rule =   [
        'givenname'  => 'require',
        'surname'  => 'require',
        'email'  => 'require|email',
        'captcha|验证码'=>'require|captcha'
    ];

    protected $message  =   [
        'givenname.require' => '名不能为空！',
        'surname.require' => '姓不能为空！',
        'email.require' => '邮箱不能为空！',
        'email.email' => '邮箱格式不正确！',
    ];

}